package top.yqingyu.httpserver;

import top.yqingyu.httpserver.server.HttpServerStarter;
import top.yqingyu.trans$client.api.ConnectionConfig;
import top.yqingyu.trans$client.main.ClientAPI;



/**
 * @author YYJ
 * @version 1.0.0
 * @ClassName top.yqingyu.httpserver.Starter
 * @description
 * @createTime 2022年09月17日 22:14:00
 */
public class Starter {
    public static ClientAPI clientAPI;

    public static void main(String[] args) throws Exception {
        ConnectionConfig build =  new ConnectionConfig.Builder(ConnectionConfig.Type.FILE).build();
        build.pooling = true;
        build.pool_max = build.pool_min;
        clientAPI = ClientAPI.initSync(build);
        HttpServerStarter.main(args);
    }
}
